package com.lh.job.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.common.entity.admin.Period;
import com.lh.common.entity.admin.UserCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author FH
 * @ClassName:
 * @Description: (类作用)
 * @date: 2020-05-21 17:08
 */
public interface PeriodService extends IService<Period> {

    int insertPeriod(Period period);

    List<Period> queryPeriodList();

    Period queryPeriod(Long aid);

    BigDecimal sumOrderPrice(Long pid);

    UserCode queryRobotCodeList(int portionNum,Long pid,Long aid,BigDecimal shopActivityPrice);

    String queryCode(Long pid, int portionNum);

    UserCode queryUserCodeList(String code, Long pid);

    int updatePeriod(Period period);

    int updatePeriodRobotBuy(Period period);
}
